<template>
	<aplid-base-crud ref="crud" class="w-100" v-bind="baseConfig"></aplid-base-crud>
</template>

<script setup lang="ts">
const rowData: any = inject('nowRowData')
const baseConfig:any = {
	pageName: '奖惩记录',
	dictcodes: ['ORG_TYPE', 'ORG_LEVEL'],
	rowKey: 'roleId',
	api: {
		index: 'view_dpRewardPunishmentInfo_page',
	},
	auth: {
		index: 'view_dpRewardPunishmentInfo_page',
	},
	paramsObj: {
		idCard: rowData.idCard,
	},
	menuBtn: [],
	tableConfig: {
		stripe: true,
		border: false,
		tableLayout: 'auto',
		columns: [
			// {
			// 	label: '单位名称',
			// 	prop: 'punishmentUnitName',
			// },
			{
				label: '奖惩层级',
				prop: 'punishmentLevelLabel',
			},
			{
				label: '奖惩类型',
				prop: 'rewardStateLabel',
			},
			{
				label: '日期',
				prop: 'punishmentDate',
			},
			// {
			// 	label: '内容',
			// 	prop: 'punishmentContent',
			// },
			// {
			// 	label: '原因',
			// 	prop: 'punishmentCause',
			// },
		],
	},
}
</script>

<style scoped></style>
